package day13.part2.demo1;

/**
 * @Author juzipi
 * @Date 2021/6/29 16:41
 * @Info
 */
public class GeometricObject {

    private String color;

    private double weight;



    public GeometricObject(){
        super();
        this.color = "green";
        this.weight = 2.0;
    }

    public GeometricObject(String color, double weight) {
        this.color = color;
        this.weight = weight;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }
}
